package org.NooLab.compare;




public class CompareFactory{

	CompareIntf compareInst = null;
	
	
	
	public CompareFactory(){
		
	}
	
	 
	
	
	private CompareIntf createCompareKernelContainer( CompareProperties properties){
		Compare comp;
		
		comp = new Compare( this, properties);
		
		compareInst = (CompareIntf)comp;
		
		return compareInst ;
	}
	
	
	public CompareIntf getCompareKernelContainer( CompareProperties cproperties){
		
		if (compareInst==null){
			compareInst = createCompareKernelContainer( cproperties );
		}
		
		return compareInst ;
	}
	
	public void  setCompareKernelContainer(CompareIntf compareinst){
	 
		  compareInst = compareinst;
	}
	
}
